<extend name="Public/base" />
<block name="main-content">
	<div class="page-content">
		<div class="row">
			<div class="col-xs-12">
				<div>
					<form class="ajaxForm2" name="leftnav" method="post" action="{:U('news_menu_order')}" >
						<table id="dynamic-table" class="table table-striped table-bordered table-hover">
							<thead>
							<tr>
								<th>菜单标题</th>
								<th>开启状态</th>
								<th>排序</th>
								<th style="border-right:#CCC solid 1px;">操作</th>
							</tr>
							</thead>

							<tbody>

							<foreach name="arr" item="v">
								<tr>
									<td style=padding-left:<if condition='$v.leftpin neq 0'>{$v.leftpin}</if>px; >{$v.lefthtml}{$v.menu_name}</span> <strong>(ID：{$v.id})</strong></td>
									<td>
										<if condition="$v['menu_open'] eq 1">
											<a class="red open-btn" href="{:U('news_menu_state')}" data-id="{$v.id}" title="已开启">
												<div id="zt{$v.id}"><button class="btn btn-minier btn-yellow">开启</button></div>
											</a>
											<else/>
											<a class="red open-btn" href="{:U('news_menu_state')}" data-id="{$v.id}" title="已禁用">
												<div id="zt{$v.id}"><button class="btn btn-minier btn-danger">禁用</button></div>
											</a>
										</if>
									</td>
									<td><input name="{$v.id}" value=" {$v.listorder}" class="list_order"/></td>
									<td>
										<div class="hidden-sm hidden-xs action-buttons">
											<a class="blue" href="{:U('news_menu_add',array('id'=>$v['id']))}"  title="添加子类">
												<i class="ace-icon fa fa-plus-circle bigger-130"></i>																</a>
											<a class="green" href="{:U('news_menu_edit',array('id'=>$v['id']))}" title="修改">
												<i class="ace-icon fa fa-pencil bigger-130"></i>																</a>
											<a class="red confirm-rst-url-btn" href="{:U('news_menu_del',array('id'=>$v['id']))}" data-info="若存在子菜单，则子菜单将一起被删除，你确定要删除吗？" title="删除">
												<i class="ace-icon fa fa-trash-o bigger-130"></i>																</a>											</div>
										<div class="hidden-md hidden-lg">
											<div class="inline position-relative">
												<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
													<i class="ace-icon fa fa-cog icon-only bigger-110"></i>
												</button>
												<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
													<li>
														<a href="{:U('news_menu_add',array('id'=>$v['id']))}"  class="tooltip-success" data-rel="tooltip" title="" data-original-title="添加子类">
																	<span class="green">
																		<i class="ace-icon fa fa-plus-circle bigger-120"></i>
																	</span>
														</a>
													</li>
													<li>
														<a href="{:U('news_menu_edit',array('id'=>$v['id']))}" class="tooltip-success" data-rel="tooltip" title="" data-original-title="修改">
																	<span class="green">
																		<i class="ace-icon fa fa-pencil bigger-120"></i>
																	</span>
														</a>
													</li>

													<li>
														<a href="{:U('news_menu_del',array('id'=>$v['id']))}"  data-info="若存在子菜单，则子菜单将一起被删除，你确定要删除吗？" class="tooltip-error confirm-rst-url-btn" data-rel="tooltip" title="" data-original-title="删除">
																	<span class="red">
																		<i class="ace-icon fa fa-trash-o bigger-120"></i>
																	</span>
														</a>
													</li>
												</ul>
											</div>
										</div>
									</td>
								</tr>
							</foreach>
							<tr>
								<td align="left"><button  id="btnorder" class="btn btn-white btn-yellow btn-sm">排序</button></td>
								<td colspan="3"></td>
							</tr>
							</tbody>
						</table>
					</form>
				</div>
			</div>
		</div>
	</div><!-- /.page-content -->
</block>
